package cn.bitkit.base.util;

/**
 *
 * @author changbo
 *
 */
public class ConstraintUtil {

    public static long toRange(long val, long start, long end){
        if(val < start){
            return start;
        }
        return Math.min(val, end);
    }

}
